<template>
  <div>
    <el-button @click="openadd">修改</el-button>
    <el-button @click="openadd2">新增</el-button>
    <component
      :is="componentTag"
      :dialog-form-visible.sync="dialogVisable"
      :componentData.sync="componentData"
    ></component>
  </div>
</template>
<script>
import updatePaywayStatus from "./components/update-payway-status";
export default {
  components: {
    updatePaywayStatus,
  },
  data() {
    return {
      homeData: {}, // 存放首页数据的对象
      list: [],
      componentTag: "update-payway-status",
      dialogVisable: false,
      componentData: {},
    };
  },

  created() {},
  mounted() {},
  methods: {
    openadd() {
      this.dialogVisable = true;
      this.componentData = {
        shopId: "6041175398",
      };
    },
    openadd2() {
      this.dialogVisable = true;
      this.componentData = {};
    },
  },
};
</script>
